# coding: utf-8
import numpy as np



def my_test():
	a = np.array([[0.49979195,0.5000657,0.50005805,0.50008746,0.49984061,0.50014115
,0.49979735,0.50003958,0.49986705,0.49990847,0.49978342,0.50013746
,0.49989145,0.49990629,0.49979319,0.49997986,0.49983117,0.49993274
,0.49978417,0.49977458,0.49991012,0.49981444,0.49978585,0.49978082
,0.4998331,0.49978945,0.49978274,0.49982826,0.49978429,0.49982391
,0.49978287,0.49977357,0.49977146,0.49976182,0.49977722,0.49982777
,0.49979637,0.49987268,0.50013357,0.49996785,0.49984423,0.49978652
,0.49979678,0.50017779,0.49993389,0.49982416,0.49996974,0.50019461
,0.49997187,0.50010374,0.50005492,0.49995227,0.49986911,0.49995647
,0.50001322,0.50015829,0.500155,0.50017902,0.50013546,0.50019455
,0.50000277,0.50019742,0.50017579,0.5001199,0.50018712,0.50014699
,0.50016492,0.500122,0.50003486,0.50002338,0.50001136,0.50014722
,0.50018291,0.50013467,0.50018739,0.49999722,0.50020475,0.50010408
,0.50016672,0.50009253,0.50018993,0.5001816,0.50013973,0.50010066
,0.50012243,0.50012131,0.50018157,0.50007335,0.5001045,0.4999764
,0.49996657,0.50006051,0.50011305,0.50014248,0.50000682,0.50003784
,0.50007347,0.50001663,0.5000982,0.49994998,0.50003667,0.49994329
,0.49996051,0.499948,0.50009356,0.49994776,0.49993759,0.50005124
,0.49996601,0.49995023,0.50006011,0.4999365,0.49994594,0.49999014
,0.49992986,0.50001039,0.49993515,0.50003252,0.49998473,0.49995593
,0.49994227,0.49994621,0.50000252,0.5000037,0.49999526,0.50000769
,0.50000624,0.4999791,0.49994061,0.50000652,0.49996569,0.49994823
,0.49994147,0.50000592,0.50001105,0.49996511,0.50000695,0.49995344
,0.50000012,0.50000435,0.50000094,0.50000598,0.49998895,0.4999931
,0.49999832,0.50000747,0.50000684,0.4999817,0.49999904,0.49996348
,0.50000985,0.49993955,0.49992096,0.49987054,0.49995389,0.49998594
,0.49998561,0.49997877,0.49996316,0.50000826,0.49998727,0.50000677
,0.49991307,0.49996043,0.49989146,0.49994059,0.499869,0.49988058
,0.49995549,0.50000954,0.49994384,0.49986295,0.50005609,0.49989304
,0.499886,0.49988746,0.49994046,0.49987425,0.49986529,0.49987785
,0.49993505,0.49987286,0.49987572,0.49998534,0.49987113,0.49986647
,0.49992248,0.49989736,0.49990205,0.49988196,0.50004031,0.4999638
,0.5001761,0.50008873,0.50001477,0.49988055,0.5000221,0.5000331
,0.50009776,0.50016561,0.49985827,0.50001194,0.50005596,0.50018675
,0.49995446,0.5000531,0.49986906,0.49994409,0.5001338,0.50023281
,0.5000654,0.5001891,0.50020826,0.50012458,0.49985172,0.49990023
,0.50007014,0.5002044,0.50022079,0.49990251,0.50018364,0.50011165
,0.50019312,0.50014416,0.50002766,0.5002253,0.500209,0.50021425
,0.50023199,0.5002014,0.50007181,0.50009473,0.5001182,0.5002119
,0.50003789,0.50020562,0.50012127,0.50002378,0.50003396,0.4998669
,0.50009064,0.50020954,0.50021189,0.49989691,0.50014083,0.50002988
,0.50017296,0.49988088,0.50010835,0.49982494,0.50012882,0.49985102
,0.4999007,0.50011908,0.49982155,0.50010599,0.50009494,0.49983546
,0.50001859,0.49998574,0.49994236,0.5000139,0.49980544,0.49980386
,0.49986645,0.49984971,0.49980805,0.49990192,0.49980982,0.49986802
,0.49980568,0.49981875,0.49982207,0.49996513,0.49981225,0.49982354
,0.50000879,0.49990013,0.4998461,0.49982015,0.49986926,0.49982117
,0.49979875,0.49992959,0.50001988,0.49990887,0.50000058,0.500048
,0.50000238,0.49981469,0.49987614,0.49997787,0.49986299,0.49997759
,0.4998065,0.49984841,0.50001519,0.49983473,0.49983543,0.4999737
,0.49980835,0.5000089,0.49991178,0.49999072,0.49998999,0.50003856
,0.49996808,0.50004884,0.4999877,0.50005639,0.50002303,0.50004944
,0.50006039,0.49997204,0.50005497,0.50003509,0.50002704,0.50005276
,0.50006048,0.5000178,0.50000047,0.50006449,0.50005072,0.4999907
,0.50000618,0.50001463,0.49999218,0.50006099,0.50000732,0.49998979
,0.49999528,0.50006107,0.50004043,0.50000192,0.50002822,0.50002842
,0.49999032,0.50001963,0.50005066,0.49999244,0.50001269,0.50002479
,0.50005159,0.50001808,0.50006141,0.50005095,0.49999211,0.50005347
,0.50006467,0.50001322,0.49998957,0.50002329,0.50006145,0.5000138
,0.50000013,0.50009096,0.50000731,0.50012922,0.49999137,0.50006084
,0.50009454,0.50003719,0.50014159,0.50008898,0.4999913,0.49985837
,0.50011625,0.50008746,0.50000054,0.50010033,0.50006261,0.50012864
,0.50012193,0.50005593,0.50011862,0.50013641,0.5001411,0.50012822
,0.50012116,0.50010605,0.50010525,0.50011988,0.50008703,0.50013167
,0.50002261,0.50014668,0.49992761,0.50012874,0.50011652,0.50001805
,0.50015011,0.50012213,0.5000332,0.49984449,0.50006784,0.49987113
,0.49995631,0.49991075,0.50009071,0.49983094]])

	y = np.array([[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
,1,1,1,1]])

	r1 = - y/a + (1-y)/(1-a)
	r2 = - (y/a - (1-y)/(1-a))
	print(r1 == r2)


if __name__ == '__main__':
	my_test()